﻿using System;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020000EA RID: 234
	[Serializable]
	public class ChromaticAberrationModel : PostProcessingModel
	{
		// Token: 0x1700008E RID: 142
		// (get) Token: 0x06000609 RID: 1545 RVA: 0x00024E0C File Offset: 0x0002300C
		// (set) Token: 0x0600060A RID: 1546 RVA: 0x00024E14 File Offset: 0x00023014
		public ChromaticAberrationModel.Settings settings
		{
			get
			{
				return this.m_Settings;
			}
			set
			{
				this.m_Settings = value;
			}
		}

		// Token: 0x0600060B RID: 1547 RVA: 0x00024E20 File Offset: 0x00023020
		public override void Reset()
		{
			this.m_Settings = ChromaticAberrationModel.Settings.defaultSettings;
		}

		// Token: 0x0400058E RID: 1422
		[SerializeField]
		private ChromaticAberrationModel.Settings m_Settings = ChromaticAberrationModel.Settings.defaultSettings;

		// Token: 0x020000EB RID: 235
		[Serializable]
		public struct Settings
		{
			// Token: 0x1700008F RID: 143
			// (get) Token: 0x0600060C RID: 1548 RVA: 0x00024E30 File Offset: 0x00023030
			public static ChromaticAberrationModel.Settings defaultSettings
			{
				get
				{
					return new ChromaticAberrationModel.Settings
					{
						spectralTexture = null,
						intensity = 0.1f
					};
				}
			}

			// Token: 0x0400058F RID: 1423
			[Tooltip("Shift the hue of chromatic aberrations.")]
			public Texture2D spectralTexture;

			// Token: 0x04000590 RID: 1424
			[Range(0f, 1f)]
			[Tooltip("Amount of tangential distortion.")]
			public float intensity;
		}
	}
}
